﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

using DotSpatial.Controls;

using Kitware.VTK;

namespace HA.ModFlow.Application
{
    /// <summary>
    /// RendererView.xaml 的交互逻辑
    /// </summary>
    public partial class RendererView : UserControl
    {
        public RendererView()
        {
            InitializeComponent();
        }


        RendererViewModel _viewModel;

        public RendererViewModel ViewModel
        {
            get { return _viewModel; }
            set { 
                
                
                _viewModel = value;


            this.DataContext = this._viewModel;


            }
        }


       


        public Map GisMap
        {
            get { return (DotSpatial.Controls.Map)this.mfhGis.Child; }
        }

        public RenderWindowControl VtkMap
        {
            get { return (RenderWindowControl)this.wfhVtkRenderwindow.Child; }
        }
    }
}
